Skip to content

fix: AutoComplete hinter should link to p5js.org for v2, and v1.p5js.org - #4234

Open
ksen0 wants to merge 3 commits into
developfrom
ksen0-patch-4
Open

fix: AutoComplete hinter should link to p5js.org for v2, and v1.p5js.org#4234
ksen0 wants to merge 3 commits into
developfrom
ksen0-patch-4

Conversation

@ksen0

@ksen0 ksen0 commented Jul 31, 2026

Copy link
Copy Markdown
Member

Fixes #4233

Demo:

Changes:

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • has no typecheck errors (npm run typecheck)
  • is from a uniquely-named feature branch and is up to date with the develop branch.
  • is descriptively named and links to an issue number, i.e. Fixes #123
  • meets the standards outlined in the accessibility guidelines

@ksen0 ksen0 changed the title Update index.jsx fix: AutoComplete hinter should link to p5js.org for v2, and v1.p5js.org Jul 31, 2026
@ksen0

ksen0 commented Jul 31, 2026

Copy link
Copy Markdown
Member Author

Hi @raclim @doradocodes , fixing this problem is a prereq for making the hinter default! Also tagging @skyash-dev - if this PR is incomplete, and you'd like to make an alternative PR, please feel free. In that case I can close this one, I haven't tested it. The issue came up when we were doing the v2 default switch on the editor and I made the PR mainly as a reminder.

@skyash-dev

skyash-dev commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

@ksen0 as i can see the update-p5-hinter file was already updated here

and the changes to index file looks good to me. i can test this once i reach home (afk rn)

khanniie
khanniie previously approved these changes Aug 5, 2026

@khanniie khanniie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this locally and it LGTM! thanks Kit!

const VERSIONS = [
{
version: 'v1',
url: 'https://v1.p5js.org/reference/data.json'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't want to show v2 hints here (which beta reference data includes), right? we can keep v1 here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this, I removed the stray changes!

},
{
version: 'v2',
url: 'https://p5js.org/reference/data.json'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can also keep this as beta is now live. (changes to these urls are already done here)

@skyash-dev

skyash-dev commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

@ksen0 left some comments. to generate new hint files from urls, run npm run update-p5-hinter.

after generating new hint files and selecting v1, v2 hints are shown when updating hints with these urls.
image

tldr; dont change update-p5-hinter.js as it was already updated here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AutoComplete hinter should link to p5js.org for v2, and v1.p5js.org

3 participants